export default class OnlineDictController {
  static list(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/online/onlineDict/list', 'post', params, axiosOption, httpOption);
  }

  static view(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/online/onlineDict/view', 'get', params, axiosOption, httpOption);
  }

  static export(sender, params, fileName) {
    return sender.download('/admin/online/onlineDict/export', params, fileName);
  }

  static add(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/online/onlineDict/add', 'post', params, axiosOption, httpOption);
  }

  static update(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/online/onlineDict/update', 'post', params, axiosOption, httpOption);
  }

  static delete(sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/online/onlineDict/delete', 'post', params, axiosOption, httpOption);
  }

  static listAllGlobalDict(sender, params, axiosOption, httpOption) {
    return sender.doUrl(
      '/admin/online/onlineDict/listAllGlobalDict',
      'post',
      params,
      axiosOption,
      httpOption
    );
  }
}
